<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2018/5/22
  Time: 19:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="${pageContext.request.contextPath}/login.do" method="post">
   <table>
       <tr>
            <td> 用户名 </td>
           <td><input type="text" name="username" value=""></td>
       </tr>
       <tr>
           <td> 密码：</td>
           <td><input type="password" value="" name="pass"></td>
       </tr>
       <tr>
           <td><input type="submit" value="登录" id="btn"> </td>
       </tr>
   </table>
</form>

<form action="${pageContext.request.contextPath}/register.do" method="post">
    <table>
        <tr>
            <td> 用户名 </td>
            <td><input type="text" name="username" value=""></td>
        </tr>
        <tr>
            <td> 密码：</td>
            <td><input type="password" value="" name="pass"></td>
        </tr>
        <tr>
            <td><input type="submit" value="注册" id="register"> </td>
        </tr>
    </table>
</form>
<script type="text/javascript">
  /*  $(document).ready(function () {
        $("btn").click(function () {
               var username = $("username").value();
            }
        );
    });*/
</script>
</body>
</html>
